import java.applet.Applet;
import java.awt.Graphics;

import com.github.sarxos.webcam.Webcam;

public class GestureRecognition extends Applet{
	private static final long serialVersionUID = 3517366452510566924L;
	private Webcam webcam = null;
	private boolean end = false;
	public boolean isEnd(){
		return end;
	}

	public void start(){
		webcam = Webcam.getDefault();
		webcam.open();
		//new Canny(webcam, this).start();
		//new BinaryOps(webcam, this).start();
		new Enhancement(webcam, this).start();
	}

	@Override
	public void paint(Graphics g) {
		super.paint(g);
	}

	public void destroy(){
		end = true;
		this.webcam.close();
	}
}